\documentclass{article}
\usepackage{enumerate}
\usepackage{times}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{pifont}
\usepackage{pstricks}
\usepackage{pst-plot}

\pagestyle{empty}
\raggedbottom
\raggedright

\newcommand{\argmax}{\operatornamewithlimits{argmax}}
\newcommand{\argmin}{\operatornamewithlimits{argmin}}
\newcommand{\myre}{\nonumber\\}
\newcommand{\mysp}{\,\,\,}
\newcommand{\pexp}[1]{\mathrm{E}\left[#1 \right]}
\newcommand{\pvar}[1]{\mathrm{Var}\left[#1 \right]}
\newcommand{\md}[1]{\mathrm{d}\,#1}
\newcommand{\mpd}[1]{\partial\,#1}
\newcommand{\mfracd}[2]{\frac{\md{#1}}{\md{#2}}}
\newcommand{\mfracpd}[2]{\frac{\mpd{#1}}{\mpd{#2}}}
\newcommand{\mvec}[1]{{#1}_1,\ldots,{#1}_n}

\newtheorem{mthm}{Theorem}
\newtheorem{mlem}{Lemma}
\newtheorem{mrem}{Remark}
\newtheorem{mdef}{Definition}
\newtheorem{mcor}{Corollary}
\newcommand{\TSE}{%
T\kern-.15em%
\lower.5ex\hbox{S}\kern-.1em%
$\Sigma$\kern.2em%
}
\newcommand{\mybox}[3]{\psline(#1,0)(#1,#3)(#2,#3)(#2,0)}



\newcommand{\mysection}[2]{
  \vspace{1cm}
\begin{tabular*}{7in}{l@{\extracolsep{\fill}}r}
  \hline\\
\textsc{\large #1 } & \textbf{ #2 }   \vspace{0.5cm}\\
\end{tabular*}
}

\setlength{\evensidemargin}{-0.4in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\oddsidemargin}{-0.4in}
\setlength{\paperheight}{11in}
\setlength{\paperwidth}{8.5in}
\setlength{\tabcolsep}{0in}
\setlength{\textheight}{9.5in}
\setlength{\textwidth}{7in}
\setlength{\topmargin}{-0.6in}
\setlength{\topskip}{0in}
\setlength{\voffset}{0.1in}

\begin{document}
\begin{tabular*}{7in}{l@{\extracolsep{\fill}}r}
  \hline
  \hline
  \\
\textsc{\LARGE ``@query''} &  \\
\ding{224}\textbf{@totalnum results}&\\
 \\
  \hline
  \hline
\end{tabular*}
\ding{182}--\ding{191}: rank\hspace{2cm}\P: page number
\begin{pspicture}(-1,-0.7)(-@xshift,-1.2)
\psset{yunit=2mm,xunit=9mm}
\psaxes[Dy=2,dy=0.5cm,Ox=-1,ticks=none,labels=none,showorigin=false]{-|}(0,0)(0,0)(@xlen,6)
@drawplot
\rput(0.45,6.2){$@maxscore$}
\end{pspicture}
\vspace{-0.5cm}


@content
\vspace{0.5cm}
\begin{tabular*}{7in}{l@{\extracolsep{\fill}}r}
  \hline
  \hline
  \\
  \ding{94} Generated by \TSE -- a theorems search engine, @nowtime.&
\end{tabular*}
\end{document}
